package com.hhs.storage.service;

import com.hhs.storage.bean.Tag;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hhs
 * @since 2023-03-30
 */
public interface TagService extends IService<Tag> {
    /**
     * 查询标签
     * @param name
     * @param type
     * @return
     */
    public Map queryList(String userId,@RequestParam String name, @RequestParam String type);
    /**
     * 新增标签
     * @param name
     * @param type
     * @return
     */
    public Map add(String userId,@RequestParam String name, @RequestParam String type, @RequestParam String color);
    /**
     * 删除标签
     * @param id
     * @return
     */
    public Map delete(@RequestParam Integer id);
}
